dxp-ux

(0 reviews)

Get PaymentMethod (TMF-670) towards SFDC

This API will allows you to view/get the Payment Methods info from Salesforce

URL
https://[localhost]:[port]/dxp-ux/v1/{businessId}/paymentmethod
URL PARAMS
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (PR) identifying the business unit.Y
Headers
namevaluedescriptionrequired
X-Correlation-IDStringThis is a unique identifier for the current call chain that can be used to tie together log entries on multiple layers.
Example: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2b
N
client_idStringThe client_id identifying the channel. Minimum
Y
client_secretStringThe client_id identifying the channel. Minimum
Y
Query Param
nametypedescriptionrequired
accountIdstringbilling account number (BAN-CAN),
(either msisdn or billingAccountNumber is mandatory)
Y*
account.relatedParty.idstringMobile Device number (either msisdn or billingAccountNumber is mandatory)Y*
relatedParty.namestringName of the relatedParty to search. Could be different, depending on the use case. For Peacock Mobile Project the value is IVR/Digital".Y
relatedParty.@typestringThe type of the relatedParty. For Peacock Mobile Project the values must be channelY
cURL request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/dxp-ux/dxp-ux/v4/PR/paymentMethod?relatedParty.name=digital&relatedParty.%40type=channel&accountId=31516278-31514752&account.relatedParty.id=12401231232' \
--header 'X-Correlation-ID: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92cDD' \
--header 'client_id: 12345' \
--header 'client_secret: abcde'

Response success

[ 200 ]
[
    {
        "id":"PM-a6I3K0000008znQUAQ",
        "token": "cGF5bWVudG1ldGhvZF9jY181a25obmtzZg",
        "@type":"Tokenised Credit Card",
        "@baseType": "paymentMethod",
        "account": [
            {
                "id": "31516278-31514752",
                "@type": "BillingAccount",
                "ratingType":"postpaid",
                "autopayEnabled": "true"
            }
        ],
        "relatedParty":[{

                "name": "BrainTreeToken",
                "@type": "paymentGatewayType"
        }],
        "autopayEnabled": "true"
    }
]
Definitions
nametypedescriptionrequired
idstringpayment method external identifier from billing systemN
tokenstringpayment method token in payment method gatewayN
@typestringDescribes the type of cardN
@baseTypestringDescribes the base type of cardN
accountstringDescribes the account detailsN
account.idstringBilling Account NumberN
account.@typestringDescribes the type of accountN
account.ratingTypestringcustomer payment type, Eg: Prepaid/PostpaiodN
account.autopayEnabledstringindicates if the billing account supports automatic paymentsN
relatedPartystringDescribes related partyN
relatedParty.namestringpayment method gateway type, Eg: BrainTreeToken/EvertecN
relatedParty.@typestringDescribes the type of related partyN
autopayEnabledstringindicator for the payment method used for autopayN

Reviews